package com.shengyin.ec.service.account;

import java.lang.reflect.InvocationTargetException;
import java.util.List;

import org.apache.commons.beanutils.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.shengyin.ec.model.dao.account.FavoritenDao;
import com.shengyin.ec.model.entity.Favoriten;

@Service("favoritenService")
public class FavoritenServiceImpl  implements FavoritenService{
	
	@Autowired
	FavoritenDao favoritenDao;
	
	@Override
	public List<Favoriten> getFavoritenByUserId(long id){
		List<Favoriten> favoritenList = favoritenDao.getFavoritenByUserId(id);
		return favoritenList;
	}
}